package com.lc.controller;

import com.lc.service.OrderDetailService;
import com.lc.utils.R;
import com.lc.vo.Report1Obj;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/report")
public class ReportController {

    @Autowired
    OrderDetailService orderDetailService;

    @GetMapping("/report1")
    public R report1() {
        List<Report1Obj> list= orderDetailService.report1();
        return R.ok(list);
    }
}
